﻿using System;
using System.Collections.Generic;
using System.Text;

namespace iPdf
{
    class TextBoxWithValidator : HoverSelectionTextBox
    {
        public IValidator Validator
        {
            get;
            set;
        }

        public bool IsValidated
        {
            get
            {
                if (Validator == null)
                {
                    return true;
                }

                return Validator.IsValidString(this.Text);
            }
        }
    }
}
